package main

import "fmt"

func main() {
	a:=10
	a=change(a)
	fmt.Println(a)
	changePoint(&a)
	fmt.Println(a)

	var arr =[12]int{}
	var brr []int

	for i,v:=range arr {
		fmt.Printf("Element[%d] = %d\n", i,v )
		arr[i]=i
	}

	fmt.Println(arr[3:6])
	brr=append(brr, 11)
	fmt.Println(brr)
	var ptr *int
	fmt.Println(ptr==nil)
	ptr=&a
	fmt.Println(ptr==nil)
	fmt.Println(re_two())
}

//value

func change(a int) int{
	return a+1
}

func changePoint(a *int){
	*a=*a+1
}

func re_two() (int,int) {
	return 1,2
}
